package com.zygh.policeasset.pojo;

import cn.afterturn.easypoi.util.PoiElUtil;

/* loaded from: police-asset-2.0-0.0.1-SNAPSHOT.jar:BOOT-INF/classes/com/zygh/policeasset/pojo/AssetsTypeSum.class */
public class AssetsTypeSum {
    private String name;
    private Integer numberSum;
    private double amountSum;

    public void setName(String name) {
        this.name = name;
    }

    public void setNumberSum(Integer numberSum) {
        this.numberSum = numberSum;
    }

    public void setAmountSum(double amountSum) {
        this.amountSum = amountSum;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof AssetsTypeSum)) {
            return false;
        }
        AssetsTypeSum other = (AssetsTypeSum) o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$name = getName();
        Object other$name = other.getName();
        if (this$name == null) {
            if (other$name != null) {
                return false;
            }
        } else if (!this$name.equals(other$name)) {
            return false;
        }
        Object this$numberSum = getNumberSum();
        Object other$numberSum = other.getNumberSum();
        if (this$numberSum == null) {
            if (other$numberSum != null) {
                return false;
            }
        } else if (!this$numberSum.equals(other$numberSum)) {
            return false;
        }
        return Double.compare(getAmountSum(), other.getAmountSum()) == 0;
    }

    protected boolean canEqual(Object other) {
        return other instanceof AssetsTypeSum;
    }

    public int hashCode() {
        Object $name = getName();
        int result = (1 * 59) + ($name == null ? 43 : $name.hashCode());
        Object $numberSum = getNumberSum();
        int result2 = (result * 59) + ($numberSum == null ? 43 : $numberSum.hashCode());
        long $amountSum = Double.doubleToLongBits(getAmountSum());
        return (result2 * 59) + ((int) (($amountSum >>> 32) ^ $amountSum));
    }

    public String toString() {
        return "AssetsTypeSum(name=" + getName() + ", numberSum=" + getNumberSum() + ", amountSum=" + getAmountSum() + PoiElUtil.RIGHT_BRACKET;
    }

    public String getName() {
        return this.name;
    }

    public Integer getNumberSum() {
        return this.numberSum;
    }

    public double getAmountSum() {
        return this.amountSum;
    }
}